package com.enki.cigarettes.enums;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.enums
 * @Name e-cigarettes-shop-api-module
 * @Description: TODO 订单枚举
 * @date 2018/11/2
 */
public class OrderEnums {

    /**
     * 订单状态
     */
    public enum OrderStatus {
        UNPAID("未付款", 0), PAID("已付款", 1), SHIPPED("已发货", 2), SIGNING("已签收", 3), RETURN_APPLICATION("退货申请", 4), RETURN("退货中", 5), RETURNED("已退货", 6), TRANSACTION_CANCEL("取消交易", 7), TRANSACTION_COMPLETE("交易完成", 8), ORDER_DELETE("订单删除", -1);

        private String name;

        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        OrderStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 订单类型
     */
    public enum OrderType {
        ORDINARY("普通订单", 0), LIMITED_TIME("限时购订单", 1), WELFARE("福利金订单", 2);

        private String name;

        private int type;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        OrderType(String name, int type) {
            this.name = name;
            this.type = type;
        }
    }

}
